import { IsNotEmpty, IsString, MaxLength } from "class-validator";

export class CommonDto {
    
    @MaxLength(20)
    @IsString()
    @IsNotEmpty({message : '请输入登录账号'})
    account:string;

    @MaxLength(20)
    @IsString()
    @IsNotEmpty({message : '请输入登录密码'})
    password:string;
}